]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Fix code typo
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Mar 2023 09:54:33 +0000 (10:54 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 13:00:49 +0000 (13:00 +0000)
Even though commit b89d90eb8 talked about the GLib.BookmarkFile
type, this didn't stop the code from sneaking a silly typo and
refer to this GLib.BookmarksFile (i.e. extra 's').

Fix the code to refer to the right type name and constructor.

Fixes: b89d90eb8 ("screenshot: Use GLib.BookmarkFile to save recent screenshots")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2692>

js/ui/screenshot.js

index 48ca1ae764c08f542b4e7ba39f6e37420f54cfb1..fd84a74f8b72cc5afd2bf69e0131a942b843982f 100644 (file)
@@ -2076,7 +2076,7 @@ function _storeScreenshot(bytes, pixbuf) {
         const recentFile =
             GLib.build_filenamev([GLib.get_user_data_dir(), 'recently-used.xbel']);
         const uri = screenshotFile.get_uri();
-        const bookmarks = new GLib.BookmarksFile();
+        const bookmarks = new GLib.BookmarkFile();
         try {
             bookmarks.load_from_file(recentFile);
         } catch (e) {